define(function(require, exports, module) {
    require("common/umei.dev");
    var code = require("../../tpl/show/forms.html");
    umei.initForm({
	formObj : $("#user_form"), autocommit : "true", // 是否自动提交，设置为true
	// 按enter会提交 提交按钮用input
	// type设置为submit
	// 点击提交按钮也会提交
	commiturl : "ajaxlogin.do"
    });

    $("#code").click(function() {
	umei.dialog({
	    title : "代码实例", content : code
	});
	$('pre').each(function(i, block) {
	    hljs.highlightBlock(block);
	});
    });
});